package com.AAA.controller.scl;

import com.AAA.entity.LayData;
import com.AAA.entity.scl.TSclRecordDedtail;
import com.AAA.service.scl.TSclRecordDedtailService;
import org.springframework.web.bind.annotation.*;
import org.springframework.beans.factory.annotation.Autowired;

import java.util.List;

/**
 * (TSclRecordDedtail)表控制层
 *
 * @author makejava
 * @since 2022-10-31 19:46:04
 */
@RestController
@RequestMapping("tSclRecordDedtail")
public class TSclRecordDedtailController {
    /**
     * 服务对象
     */
    @Autowired
    private TSclRecordDedtailService tSclRecordDedtailService;

    @PostMapping
    // @RequestBody 把json字符串转化为对象   参数前面
    public LayData insertDetail(@RequestBody List<TSclRecordDedtail> details){
        return new LayData(tSclRecordDedtailService.insertBatch(details));
    }
}
